package com.heima.admin.service.impl;

import com.heima.apis.wemedia.IWemediaClient;
import com.heima.model.wemedia.dtos.SensitiveSelectDto;
import com.heima.admin.service.SensitiveService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName $ {NAME}
 * @Description TODO
 * @Author 寇铭
 * @Date 2022/8/11 14:49
 * @Version 1.0
 **/
@Service
public class SensitiveServiceImpl implements SensitiveService {


    @Autowired
    private IWemediaClient sensitiveClient;

    @Override
    public ResponseResult list(SensitiveSelectDto dto) {
        return sensitiveClient.list(dto);
    }

    @Override
    public boolean save(WmSensitive sensitive) {
        return sensitiveClient.save(sensitive);
    }

    @Override
    public boolean delete(Integer id) {
        boolean idDelete = sensitiveClient.delete(id);
        return idDelete;
    }

    @Override
    public boolean update(WmSensitive sensitive) {
        boolean flag = sensitiveClient.update(sensitive);
        return flag;
    }


}
